package com.guigu.pd.serviceapi.workfeign;

import com.guigu.pd.serviceapi.pojo.TaskPickupDispatch;
import com.guigu.pd.serviceapi.pojo.TaskPickupDispatchEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * @author lizongyi
 * @date 2022/7/25
 * @Note
 */
@FeignClient(value = "pd-work",path = "/work/taskpickupdispatch")
public interface TaskPickupDispatchFeign {

    /**
     * 获取未完成收快递最少得快递员id下标
     */
    @GetMapping("/panduanshoujiankdy/{id}")
    public int panduanshoujiankdy(@PathVariable(name = "id")String id);

    /**
     * 添加快递员揽件订单
     */
    @PostMapping("/savekdylanjian")
     boolean savekdylanjian(@RequestBody TaskPickupDispatch taskPickupDispatch);

    @GetMapping("/getbyorderid/{id}")
    public TaskPickupDispatchEntity getbyorderId(@PathVariable("id") String id);
}
